package cn.mastor.Controller;

import cn.mastor.User;
import cn.mastor.feign.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pay")
public class PayController {
    @Autowired
    PayService payService;
    @RequestMapping("/{id}")
    public User getUserById(@PathVariable("id") Integer id){
        return payService.findbyid(id);
    }
}
